package com.ruoyi.receipt.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 收货统计(记录)管理对象 sys_receipt
 * 
 * @author ruoyi
 * @date 2023-11-21
 */
@Data
public class SysReceipt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 货物编号 */
    @Excel(name = "货物编号")
    private String prodCode;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String prodName;

    /** 收货人 */
    @Excel(name = "收货人")
    private String userName;

    /** 收货类型 */
    @Excel(name = "收货类型")
    private String receiptType;

    /** 收货数量 */
    @Excel(name = "收货数量")
    private Long receiptNum;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiptTime;

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date selectMinTime;  //前端查询条件 不做映射(最早收货时间)

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date selectMaxTime;    //前端查询条件 不做映射(最晚收货时间)

}
